package co.gov.mintic.Biblioteca.android;

import java.util.Timer;
import java.util.TimerTask;

import co.gov.mintic.Biblioteca.android.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;

/**
 * 
 * @author 
 * 
 */

public class MainActivity extends Activity {
	private long splashDelay = 3000;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		TimerTask task = new TimerTask() {

			public void run() {
				finish();
				Intent hackbookIntent = new Intent().setClass(
						MainActivity.this, Menu.class);
				startActivity(hackbookIntent);
			}
		};
		Timer timer = new Timer();
		timer.schedule(task, splashDelay);
	}
}
